package com.itheima.utils;

import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class MyThreadLocalUtil {
    private static ThreadLocal local = new ThreadLocal();
     public static <T> void setValue(T map){
         local.set(map);
     }
     public static <T> T getValue(){
         return (T)local.get();
     }
}
